package com.ruoyi.security.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/**
 * 巡更记录对象 omp_inspection_record
 *
 * @author cjie
 * @date 2022-04-14
 */
@Data
@ApiModel
public class InspectionRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @ApiModelProperty(value = "序号")
    private String id;

    /** 二维码 */
    @Excel(name = "二维码")
    @ApiModelProperty(value = "二维码")
    private String qrCode;

    /** 巡更人 */
    @Excel(name = "巡更人")
    @ApiModelProperty(value = "巡更人")
    private String inspectionPerson;

    /** 巡更时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "巡更时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "巡更时间")
    private Date inspectionTime;

    /** 巡更结果 */
    @Excel(name = "巡更结果")
    @ApiModelProperty(value = "巡更结果")
    private String state;

    /** 巡更内容 */
    //@ApiModelProperty(value = "巡更内容id")
    private String formData;

    @ApiModelProperty(value = "表单id")
    private String formId;

    @ApiModelProperty(value = "巡更内容")
    private Map<String,Object> formContent;

    /** 内容简要 */
    //@ApiModelProperty(value = "内容简要")
    private String content;

    /** 维度 */
    @Excel(name = "维度")
    @ApiModelProperty(value = "维度")
    private BigDecimal latitude;

    /** 经度 */
    @Excel(name = "经度")
    @ApiModelProperty(value = "经度")
    private BigDecimal longitude;

    @Excel(name = "偏距")
    @ApiModelProperty(value = "偏距")
    private BigDecimal distance;

    /** 位置名称 */
    @Excel(name = "位置名称")
    @ApiModelProperty(value = "位置名称")
    private String locationName;

    private String parkNum;

    @Excel(name = "班次")
    @ApiModelProperty(value = "班次")
    private String shift;

    @Excel(name = "类型")
    @ApiModelProperty(value = "类型")
    private String recordType;
}
